package com.efeichong.project.domain.vo;

import com.efeichong.mapping.Mapping;
import com.efeichong.mapping.UseMode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author lxk
 * @date 2020/12/10
 * @description
 */
@Setter
@Getter
public class UserQueryVo extends SysUserVo {
    @ApiModelProperty("部门id")
    @Mapping(poProperty = "sysDepts.id", useMode = UseMode.QUERY)
    private Long deptId;

    @Mapping(poProperty = "sysRoles.name", useMode = UseMode.QUERY)
    @ApiModelProperty("角色名")
    private String roleName;

    @Mapping(poProperty = "sysPosts.name", useMode = UseMode.QUERY)
    @ApiModelProperty("岗位名")
    private String postName;
}
